<script setup lang="ts">
import { ref } from "vue";
import { useAppStore } from "@/store/modules/app";
const appStore = useAppStore();
const isRouter = ref<boolean>(true);
const reload = () => {
  isRouter.value = false;
  nextTick(() => {
    isRouter.value = true;
  });
};
provide("getReload", reload);
</script>

<template>
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <router-view v-if="isRouter" />
  </el-config-provider>
</template>
